﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace Demo.Hosting.CustomHostingInIISOrWAS
{
    [ServiceContract(Name = "ICalculator", Namespace = "Justin.Wcf.Service")]
    public interface ICalculator
    {
        [OperationContract]
        double Add(double x, double y);

        [OperationContract]
        double Subtract(double x, double y);

        [OperationContract]
        double Multiply(double x, double y);

        [OperationContract]
        double Divide(double x, double y);
    }

    [ServiceContract(Name = "IPrinter", Namespace = "Justin.Wcf.Service")]
    public interface IPrinter
    {
        [OperationContract]
        String TurnOn();

        [OperationContract]
        String TurnOff();

        [OperationContract]
        String Print(String content);

        [OperationContract]
        String Scan(String content);
    }
}
